﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<MyHealthByDesignWebsite.Models.MyHealthMeasModelView>" %>

<script src="<%: Url.Content("~/Scripts/jquery-1.5.1.min.js") %>" type="text/javascript"></script>
<script src="<%: Url.Content("~/Scripts/jquery.validate.min.js") %>" type="text/javascript"></script>
<script src="<%: Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js") %>" type="text/javascript"></script>

<% using (Html.BeginForm()) { %>
    <%: Html.ValidationSummary(true,"Please correct the invalid information") %>
    <fieldset>
        <legend>Health Profile</legend>

        
        <div class="editor-field">
            <%: Html.HiddenFor(model => Model.hp.U_UserID)  %>
            <%: Html.ValidationMessageFor(model => Model.hp.U_UserID)%>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => Model.hp.HP_waistCircumference)%>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => Model.hp.HP_waistCircumference)%>
            <%: Html.ValidationMessageFor(model => Model.hp.HP_waistCircumference)%>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => Model.hp.HP_bloodPressureLow) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => Model.hp.HP_bloodPressureLow)%>
            <%: Html.ValidationMessageFor(model => Model.hp.HP_bloodPressureLow)%>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => Model.hp.HP_bloodPressureHigh)%>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => Model.hp.HP_bloodPressureHigh)%>
            <%: Html.ValidationMessageFor(model => Model.hp.HP_bloodPressureHigh)%>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => Model.hp.HP_heartRate)%>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => Model.hp.HP_heartRate)%>
            <%: Html.ValidationMessageFor(model => Model.hp.HP_heartRate)%>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => Model.hp.HP_bloodGlucose)%>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => Model.hp.HP_bloodGlucose)%>
            <%: Html.ValidationMessageFor(model => Model.hp.HP_bloodGlucose)%>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => Model.hp.HP_totalCholestrol)%>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => Model.hp.HP_totalCholestrol)%>
            <%: Html.ValidationMessageFor(model => Model.hp.HP_totalCholestrol)%>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => Model.hp.HP_LDL)%>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => Model.hp.HP_LDL)%>
            <%: Html.ValidationMessageFor(model => Model.hp.HP_LDL)%>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => Model.hp.HP_HDL)%>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => Model.hp.HP_HDL)%>
            <%: Html.ValidationMessageFor(model => Model.hp.HP_HDL)%>
        </div>

        <div class="editor-field">
            <%: Html.HiddenFor(model => Model.hp.HP_entryDate)%>
            <%: Html.ValidationMessageFor(model => Model.hp.HP_entryDate)%>
        </div>

      <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
<% } %>
     

